﻿@{
    ViewBag.Title = "_UserPartialView";
}

<div id="details">
    <p> Username:   @Model.UserName </p>
    <p> Email:  @Model.Email</p>
    @if(User.IsInRole("Admin") )
    { 
      <p> <a href="~/Account/AdminTools">Admin Tools</a> </p>
    }
</div>
<div id="about">
    <h4> About: </h4>
    @if (Model.About == null)
    {
        <p> Here you can insert something about yourself </p>
    }
    else
    {
        <p>@Model.About</p>   
    }

    @if(User.Identity.Name == Model.UserName)
    {
        <a href="/Account/EditProfile/?name=@Model.UserName">
            <button>Edit Profile</button>
        </a>
        
        <a href="~/Account/AllGroups">
            <button>Join new groups</button>
        </a>
    }
</div>